using System.Collections.Generic;
using System.Runtime.Serialization;

namespace GraphMyCode.Web.Dtos
{
	[DataContract]
	public class EdgeDto
	{
		public EdgeDto()
		{
			Attributes = new Dictionary<string, string>();
		}

		[DataMember]
		public VertexDto Source { get; set; }

		[DataMember]
		public VertexDto Target { get; set; }

		[DataMember]
		public int Thick { get; set; }

		[DataMember]
		public bool IsDirectional { get; set; }

		[DataMember]
		public Dictionary<string, string> Attributes { get; private set; }
	}
}